#include "Department.h"

Department::Department() {
}

Department::~Department() {
    for (int i = 0; i < (int)instructors.size(); i++) {
        delete instructors[i];
    }
    instructors.clear();
    for (int i = 0; i < (int)subjects.size(); i++) {
        delete subjects[i];
    }
    subjects.clear();
}

void Department::addInstructor(Instructor* p_Instructor) {
    instructors.push_back(p_Instructor);
}

void Department::addSubject(Subject* p_Subject) {
    subjects.push_back(p_Subject);
}

std::vector<Instructor*> Department::getInstructors() {
    return instructors;
}

std::vector<Subject*> Department::getSubjects() {
    return subjects;
}
